package object4.package5;
//Cat是Animal(is a)
//Cat会跑,有...的属性
public class Cat extends Animal implements IRunning{

    public Cat(String name) {
        super(name);
    }

    @Override
    public void run() {
        System.out.println(getName() + "用四条腿跑");
    }
}
